<div class="layui-fluid">
    <div class="layui-form" id="layuiadmin-form-cat" lay-filter="layuiadmin-form-cat" style="padding: 20px 0 0 0;">

         <h1>
            基础
        </h1>
        <hr/>
        <div class="layui-form-item">
            <label class="layui-form-label">
                上级
            </label>
            <div class="layui-input-inline">
                <select name="pid">    
                    <option value="">请选择</option>                
                    {$cat_options|raw}
                </select>
            </div>
        </div>
         <div class="layui-form-item">
            <label class="layui-form-label">
                排序
            </label>
            <div class="layui-input-inline">
                <input autocomplete="off" class="layui-input" lay-verify="required" name="sorted" placeholder="请输入排序" type="text" value="0" >
                </input>
            </div>
        </div>
         <h1>
            多语言
        </h1>
        <hr/>
        <div class="layui-tab">
            <ul class="layui-tab-title">
                {foreach $langs as $k=>$v}
                <li class="{if $k==1}layui-this{/if}">
                    <img src="/static/images/lang/{$v}.png" />&nbsp;{$v}
                </li>
                {/foreach}
            </ul>
            <div class="layui-tab-content">
                {foreach $langs as $k=>$v}
                <div class="layui-tab-item {if $k==1}layui-show{/if}">
                    <div class="layui-form-item">
                        <label class="layui-form-label">
                            分类
                        </label>
                        <div class="layui-input-inline">
                            <input autocomplete="off" class="layui-input" lay-verify="required" name="description[{$k}][cat_name]" placeholder="请输入分类" type="text" >
                            </input>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">
                            seo
                        </label>
                        <div class="layui-input-inline">
                            <input autocomplete="off" class="layui-input"   name="description[{$k}][seo][meta_title]" placeholder="seo标题" type="text" >
                            </input>-<input autocomplete="off" class="layui-input"   name="description[{$k}][seo][meta_keyword]" placeholder="seo关键词" type="text" >
                            </input>-<input autocomplete="off" class="layui-input"   name="description[{$k}][seo][meta_description]" placeholder="seo描述" type="text" >
                            </input>
                        </div>
                    </div>


                </div>
                {/foreach}
            </div>
        </div>
       
        <div class="layui-form-item layui-hide">
            <input id="LAY-cat-front-submit" lay-filter="LAY-cat-front-submit" lay-submit="" type="button" value="确认">
            </input>
        </div>
    </div>
</div>
<script>
    layui.use(['index', 'form', 'upload','element'], function(){
   
   var element = layui.element;
  })
</script>
